As others have said, Kathleen, I think I would check first. When I had difficulty sleeping due to night pain, and struggling to find a comfortable position for sleep, my GP prescribed amitriptyline, along with my painkillers, and it has been a big help.
There are a number of folk on here taking it, so may be worth a try.
Kathleen C x